STEP 5: Let's add a few more actions to our bridge_scene!

Make sure both of the actions go INSIDE your bridge_scene function.

  • Have the sprite Go To the location (-175, -150).
  • Have the sprite Say "I made it!"

To navigate the page using the TAB key, first press ESC to exit the code editor.

sprite = codesters.Sprite("knight1", -175, -150) sprite.set_speed(2) def park_scene(): stage.set_background("park") sprite.say("I should hurry to the castle!") sprite.move_forward(550) park_scene() def bridge_scene(): stage.set_background("drawbridge")
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)